import request from '@/utils/request'

// 查询进货列表
export function listRestock(query) {
  return request({
    url: '/system/restock/list',
    method: 'get',
    params: query
  })
}

// 查询进货详细
export function getRestock(id) {
  return request({
    url: '/system/restock/' + id,
    method: 'get'
  })
}

// 新增进货
export function addRestock(data) {
  return request({
    url: '/system/restock',
    method: 'post',
    data: data
  })
}

// 修改进货
export function updateRestock(data) {
  return request({
    url: '/system/restock',
    method: 'put',
    data: data
  })
}

// 删除进货
export function delRestock(id) {
  return request({
    url: '/system/restock/' + id,
    method: 'delete'
  })
}
